{extend name='public/layout' /}
{block name='content'}
<div class="main">
    <div class="position">
        <p>
            <span>更新时间：{:date("Y年m月d日")}</span>您当前的位置：<a href="{:url('Index/index')}">{$site.title}</a> > <a href="{:url('Second/index')}">二手房</a>
        </p>
    </div>
    <div class="screen">
        <div class="tab03 overflow_h">
            <ul class="idTabs">
                <li><a href="{:url('Second/index')}" class="selected">按区域找房</a></li>
                <li><a href="{:url('Map/index',['type'=>'second_house'])}">地图找房</a></li>
            </ul>
        </div>
        <div class="screen_box">
            <div class="screen_box01 overflow_h">
                <span>区域：</span>
                <ul>
                    <li><a href="{:getUrl('Second/index','area',$param,0)}" {empty name='search.area'}class="on"{/empty}>不限</a></li>
                    {volist name='area' id='vo'}
                    <li><a title="{$vo.name}" {if condition='$vo.id eq $search.area'}class="on"{/if} href="{:getUrl('Second/index','area',$param,$vo['id'])}">{$vo.name}</a></li>
                    {/volist}
                </ul>
            </div>
            <div class="screen_box01 overflow_h">
                <span>价格：</span>
                <ul>
                    <li><a href="{:getUrl('Second/index','price',$param,0)}" {empty name='search.price'}class="on"{/empty}>不限</a></li>
                    {volist name='price' id='vo'}
                    <li><a href="{:getUrl('Second/index','price',$param,$key)}" {if condition='$key eq $search.price'}class="on"{/if}>{$vo.name}</a></li>
                    {/volist}
                </ul>
            </div>
            <div class="screen_box01 overflow_h">
                <span>面积：</span>
                <ul>
                    <li><a href="{:getUrl('Second/index','mianji',$param,0)}" {empty name='search.price'}class="on"{/empty}>不限</a></li>
                    {volist name='mianji' id='vo'}
                    <li><a href="{:getUrl('Second/index','mianji',$param,$key)}" {if condition='$key eq $search.mianji'}class="on"{/if}>{$vo.name}</a></li>
                    {/volist}
                </ul>
            </div>
            <div class="screen_box01 overflow_h">
                <span>房型：</span>
                <ul>
                    <li><a href="{:getUrl('Second/index','room',$param,0)}" {empty name='search.room'}class="on"{/empty}>不限</a></li>
                    {volist name='room' id='vo'}
                    <li><a href="{:getUrl('Second/index','room',$param,$key)}" {if condition='$key eq $search.room'}class="on" {/if}>{$vo}</a></li>
                    {/volist}
                </ul>
            </div>
        </div>
    </div>
    <div class="overflow_h">
        <div class="house_l">
            <div class="s_h_n1 es_px">
                <span>排序：</span>
                <a href="{:getUrl('Second/index','sort',$param,0)}" {if condition="$sort eq 0"}class="no_select no_select3"{/if}>默认</a>
                {if condition="$sort eq 5"}
                <a href="{:getUrl('Second/index','sort',$param,6)}" class="no_select no_select3">面积</a>
                {elseif condition="$sort eq 6"}
                <a href="{:getUrl('Second/index','sort',$param,5)}" class="no_select no_select4">面积</a>
                {else /}
                <a href="{:getUrl('Second/index','sort',$param,6)}">面积</a>
                {/if}
                {if condition="$sort eq 1"}
                <a href="{:getUrl('Second/index','sort',$param,2)}" class="no_select no_select3">总价</a>
                {elseif condition="$sort eq 2"}
                <a href="{:getUrl('Second/index','sort',$param,1)}" class="no_select no_select4">总价</a>
                {else /}
                <a href="{:getUrl('Second/index','sort',$param,2)}">总价</a>
                {/if}
                {if condition="$sort eq 3"}
                <a href="{:getUrl('Second/index','sort',$param,4)}" class="no_select no_select3">单价</a>
                {elseif condition="$sort eq 4"}
                <a href="{:getUrl('Second/index','sort',$param,3)}" class="no_select no_select4">单价</a>
                {else /}
                <a href="{:getUrl('Second/index','sort',$param,4)}">单价</a>
                {/if}
            </div>
            <div class="house_box ">
                <ul>
                    {volist name='lists' id='vo' empty='暂无数据'}
                    <li class="overflow_h">
                        <div class="h_box01">
                            <a href="{:url('Second/detail',['id'=>$vo['id']])}" title="{$vo.title}"><img src="__IMG__/loading.gif" alt="{$vo.title}" class="lazy" data-original="{$vo.img}" width="217" height="165"></a>
                        </div>
                        <div class="h_box02_1">
                            <b><span><a href="{:url('Second/detail',['id'=>$vo['id']])}"  title="{$vo.title}">{$vo.title}</a></span></b>
                        </div>
                        <div class="h_box04">
                            <p>
                                {$zhuangxiu[$vo.zhuangxiu]['name']} | {$vo.floor}/{$vo.total_floor}层
                            </p>
                            <p>
                                <span class="h_box05"><i>{$vo.room}房{$vo.ting}厅</i><i>{$vo.mianji}平米</i></span>{$vo.address}
                            </p>
                            <div class="h_ts overflow_h">
                                {php}$houseType = explode(',',$vo['house_type']);{/php}
                                {volist name='houseType' id='data'}
                                <i class="h_ts0{$i}">{$house_type[$data]['name']}</i>
                                {/volist}
                                <i class="h_ts0{$i+1}">{$chaoxiang[$vo.chaoxiang]['name']}</i>
                            </div>
                            <p class="overflow_h m_t_10">
                                <span class="contact">{$vo.contact}</span>
                                <span class="contact_phone">{$vo.contact_phone}</span>
                            </p>
                        </div>
                        <div class="h_box06">
                            <p>
                                <span class="text08">{$vo.total_price}</span>万
                            </p>
                            <p class="text09">
                                {$vo.price}元/平米
                            </p>

                        </div>
                    </li>
                    {/volist}

                </ul>
                <div class="plastic_bottom_pages">
                    {$pages}
                </div>
            </div>
        </div>
        <div class="house_r">
            <div class="release">
                <a href="{:url('Release/entrustUsed')}" class="but110">委托出售</a>
                <a href="{:url('Release/entrustRental')}" class="but110">委托出租</a>
                <a href="{:url('Release/buy')}" class="but111">发布求购</a>
                <a href="{:url('Release/rent')}" class="but111">发布求租</a>
            </div>
            <div class="m_t_15">
                <div class="title01">
                    {$cityInfo.name}二手房推荐
                </div>
                <div class="s_h_tuijian">
                    {include file='second/right' /}
                </div>
            </div>
        </div>
    </div>
</div>
{/block}